home *** CD-ROM | disk | FTP | other *** search
- Path: brtph500.bnr.ca!news
- From: Gilbert Banks <gilbertb@bnr.ca>
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: How to the size of a file in C ?
- Date: 9 Feb 1996 12:31:06 GMT
- Organization: Bell Northern Research
- Message-ID: <4ffeqa$pjh@brtph500.bnr.ca>
- NNTP-Posting-Host: brtphb49.bnr.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/712)
- X-URL: news://rtpnews0/comp.lang.c
-
- How do I get the size of a file in C UNIX-based? I tried sizeof <file>, but
- that only returns the size of the object called "<file>" and not the data.
- I know about filelength(), also, but that is DOS, Windows, and OS/2.
-
- Can someone help me? Post a reply, my email is corruptted.
- --
- Gilbert Banks
-
-